<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Planos de Discagem</title>
<link href="css/conf.css" rel="stylesheet" type="text/css" />
</head>

<body bgcolor="#c0c0c0">

	<div align="center">
		<h2>Configuração Voice Mail</h2>
		<h6>
			<a href="menu.jsp">Voltar ao Menu</a>
		</h6>
	</div>

	<form action='ExtensionsController' name='controle'>

		<table width="525" height="141" border="0" align="center"
			cellpadding="1" cellspacing="1">
			<tr>
				<td><span class="submenus">Seção =</span></td>
				<td height="23"><span class="submenus">[ <input
						type='text' name='id' maxlength="6" size="6" id="id" /> ]
				</span></td>
			</tr>
			<tr>
				<td width="94" height="49"><span class="submenus">
				  <input
						type='text' name='mailBoxId' id="mailBoxId" size="6"/> 
			    =&gt;</span></td>
				<td width="420"><span class="submenus"> <input
						type='text' name='pinCode' id="pinCode" size="6"/>
				,
				    <input type='text'
						name='nomeCompleto' id="nomeCompleto" size='30'/>
				,
				<input type='text'
						name='eMail' id="eMail" />
              </span></td>
			</tr>

			<tr>
				<td colspan="2" align="center" valign="bottom"><input type='submit'
					class="textoBolt" value='Confirmar' /></td>
			</tr>


		</table>

		<p>&nbsp;</p>

		<input type="hidden" name="act" id="act" value="${requestScope.act}" />

	</form>

	<table width="899" border="1" cellspacing="0" cellpadding="1"
		align="center" style="border: 1px thin solid;">
		<tr class="texto" style="background-color: lightgrey">
       	  <td colspan="13"><strong>Configurações</strong></td>
		</tr>
	
		<c:forEach items="${requestScope.lista}" var="voiceMail" >
			<tbody>

				<tr>
					<td width="112">${voiceMail.id}</td>
                    <td width="112">${voiceMail.mailBoxId}</td>
					<td width="69"> => </td>
					<td width="195">${voiceMail.pinCode}</td>
					<td width="5">,</td>
					<td width="173">${voiceMail.nomeCompleto}</td>
					<td width="5">,</td>
					<td width="194">${voiceMail.eMail}</td>
					
					<td width="52"><input name="Deletar2" type="submit" class="rodape" id="Deletar2" value="Alterar" /></td>
					<td width="56"><input name="Deletar" type="submit" class="rodape" id="Deletar" value="Deletar" /></td>
				</tr>

			</tbody>
		</c:forEach>

	</table>
</body>

</html>
